package com.asset.dispoal.formula.service.converter;

import com.asset.dispoal.formula.domain.db.entitiy.GbFormula;
import com.asset.dispoal.formula.dto.GbFormulaRequest;
import com.asset.dispoal.formula.dto.GbFormulaResponse;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author qr
 * @date 2022/3/7$
 */
@Mapper
public interface GbFormulaConverter {

    GbFormulaConverter INSTANCE = Mappers.getMapper(GbFormulaConverter.class);


    GbFormula reqToDo(GbFormulaRequest request);


    List<GbFormulaResponse> dosToRes(List<GbFormula> formulaList);

}
